package homework6;

public class Test2 {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            System.out.println("你是谁?");
        });
        Thread t2 = new Thread(() ->
            System.out.println("我是查水表的!")
        );
        //完整写法
//        Thread t3 = new Thread(){
//            public void run(){
//                System.out.println("你是谁?");
//            }
//        };
//        t3.start();
        t1.start();
        t2.start();
    }
}
